
<template>
    <input type="text" placeholder="手机号/账号/用户名" lable="username"><br>
    <input type="password" placeholder="密码"><br>
    <button @click="kk">登录</button><br>
    <button @click="bb">注册</button>
</template>

<script setup>
import { reactive, ref } from 'vue'
    import {useRouter} from "vue-router";
    const router=useRouter()
    let kk=()=>{
        router.push('/user')
    }
const ruleForm = reactive({
    username:'',
    password:''
})
const rules = reactive({
    username: [
        { required: true, message: 'Please input Activity name', trigger: 'blur' },
        { min: 11, max: 11, message: '长度应该为11位', trigger: 'blur' },
    ],
    username: [
        { required: true, message: 'Please input Activity name', trigger: 'blur' },
        { min: 6, max: 6, message: '长度应该6位', trigger: 'blur' },
    ],
})
</script>